package com.smart_environmental_protection.dao;

import com.smart_environmental_protection.pojo.Types;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TypesDao {
    @Select("SELECT DISTINCT parentId,parentname FROM s_type")
    List<Types> typeList();
    @Select("select * FROM s_type where parentId=#{parentId}")
    List<Types> typess(int parentId);
}
